export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "roleId", //如果需要树型数据填写这个，否则为空
        defaultColumnWidth: null,//默认的列宽

        //UI
        defaultExpandAll: false, //是否默认展开所有行
        pagingShow: false,//本页1-2
        totalShow: false,//共10条数据
        paginationShow: false,//分页

        selectionChange:false, //是否支持多选
        searchList: [],
        buttonList: [],
        tableList: [
            {label: '职务', key: 'showList',link:true,isMore:true,emitLabel:'chooseWork'},
            // {label: '用户编号', key: 'userId'},
            // {label: '用户名', key: 'userName'},
            {label: '级别', key: 'nickName'},
            {label: '姓名', key: 'nickName'},
            {label: '状态', key: 'nickName'},
            {label: '任职时间', key: 'nickName'},
            {label: '免职时间', key: 'nickName'},
            {label: '现职时间', key: 'nickName'},
            {label: '本级时间', key: 'nickName'},
            {label: '下级时间', key: 'nickName'},
            // {label: '性别', key: 'sex',dicKey: "sys_user_sex"},
            // {label: '联系电话', key: 'phonenumber'},
            // {label: '政治面貌', key: 'politicalOutlook',dicKey: "political_outlook"},
            // {label: '电子邮件', key: 'email'},
            // {label: '最高学历', key: 'highestEducational',dicKey: "highest_educational"},
            // {label: '最高学历专业', key: 'highestMajor',dicKey: "highest_major"},
            // {label: '用户部门', key: 'dept',childKey:"deptName"},
            // {label: '状态', key: 'status', dicKey: "sys_normal_disable"},
            // {label: '创建时间', key: 'createTime'}
        ],
        // tableButton: {
        //     name: '操作',
        //     width:180,
        //     list: [
        //         // {name: '修改', type: 'success', emitLabel: 'edit',power:"system:dept:edit"},
        //         // {name: '重置密码', type: 'danger', emitLabel: 'reset',power:"system:dept:resetPwd"}
        //         {name: '任职', type: 'success', emitLabel: 'edit',power:"system:dept:edit"},
        //         {name: '免职', type: 'danger', emitLabel: 'reset',power:"system:dept:resetPwd"}
        //     ]
        // }
    }
    return config
}